package com.hjm.project.ShopExpress.ShopExpress.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hjm.project.ShopExpress.ShopExpress.mapper.ShopExpressMapper;
import com.hjm.project.ShopExpress.ShopExpress.domain.ShopExpress;
import com.hjm.project.ShopExpress.ShopExpress.service.IShopExpressService;
import com.hjm.common.utils.text.Convert;

/**
 * 物流基础信息Service业务层处理
 * 
 * @author ShopExpress
 * @date 2020-12-01
 */
@Service
public class ShopExpressServiceImpl implements IShopExpressService 
{
    @Autowired
    private ShopExpressMapper shopExpressMapper;

    /**
     * 查询物流基础信息
     * 
     * @param expressCode 物流基础信息ID
     * @return 物流基础信息
     */
    @Override
    public ShopExpress selectShopExpressById(String expressCode)
    {
        return shopExpressMapper.selectShopExpressById(expressCode);
    }

    /**
     * 查询物流基础信息列表
     * 
     * @param shopExpress 物流基础信息
     * @return 物流基础信息
     */
    @Override
    public List<ShopExpress> selectShopExpressList(ShopExpress shopExpress)
    {
        return shopExpressMapper.selectShopExpressList(shopExpress);
    }

    /**
     * 新增物流基础信息
     * 
     * @param shopExpress 物流基础信息
     * @return 结果
     */
    @Override
    public int insertShopExpress(ShopExpress shopExpress)
    {
        return shopExpressMapper.insertShopExpress(shopExpress);
    }

    /**
     * 修改物流基础信息
     * 
     * @param shopExpress 物流基础信息
     * @return 结果
     */
    @Override
    public int updateShopExpress(ShopExpress shopExpress)
    {
        return shopExpressMapper.updateShopExpress(shopExpress);
    }

    /**
     * 删除物流基础信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteShopExpressByIds(String ids)
    {
        return shopExpressMapper.deleteShopExpressByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除物流基础信息信息
     * 
     * @param expressCode 物流基础信息ID
     * @return 结果
     */
    @Override
    public int deleteShopExpressById(String expressCode)
    {
        return shopExpressMapper.deleteShopExpressById(expressCode);
    }




}
